package org.metasketch.demo.model;

import org.metasketch.model.CommonIdentified;

public class CoordinationLink extends CommonIdentified {

	// String id;
	// TODO for now use this to distinguish between causal links and conditional
	// links.
	// later we'll see if there is a need for differentiation at the class level
	boolean conditional = false;

	int lower;
	int upper;

	TransactionStep sourceTransactionStep;
	TransactionStep targetTransactionStep;

	// public String getId() {
	// return id;
	// }
	//
	// public void setId(String id) {
	// this.id = id;
	// }

	public boolean isConditional() {
		return conditional;
	}

	public void setConditional(boolean conditional) {
		this.conditional = conditional;
		
//		CoordinationStepKind.
		
	}

	public int getLower() {
		return lower;
	}

	public void setLower(int low) {
		this.lower = low;
	}

	public int getUpper() {
		return upper;
	}

	public void setUpper(int high) {
		this.upper = high;
	}

	public TransactionStep getSourceTransactionStep() {
		return sourceTransactionStep;
	}

	public void setSourceTransactionStep(TransactionStep sourceTransactionStep) {
		this.sourceTransactionStep = sourceTransactionStep;
	}

	public TransactionStep getTargetTransactionStep() {
		return targetTransactionStep;
	}

	public void setTargetTransactionStep(TransactionStep targetTransactionStep) {
		this.targetTransactionStep = targetTransactionStep;
	}

}
